package com.wep.fence.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wep.fence.dto.RegionDTO;
import com.wep.fence.dto.RegionQuery;
import com.wep.fence.entity.RegionEntity;

import java.util.List;

/**
 * @author wep
 * @version 1.0
 * 2025/4/25 17:59
 */
public interface RegionService extends IService<RegionEntity> {
    List<RegionEntity> listByParam(RegionQuery query);

    IPage<RegionEntity> pageByParam(RegionQuery query);

    RegionEntity getByCode(String code);

    RegionDTO listChildByCode(String code, Integer type);

    List<RegionEntity> listParentByCode(String code);
}
